package org.example.annotation;

import org.example.MyRpcBeanFactoryPostProcessor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

//用于开启rpc服务  导入MyRpcRegistrar 用于注册服务  要标明扫描的包
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({MyRpcBeanFactoryPostProcessor.class})
public @interface EnableMyRpc {
    String[] basePackages() default {};
}
